module.exports = `
  type Meta {
    duration: Int
  }

  type Material {
    id: ID!
    type: String!
    userId: Int!
    key: String!
    size: Int
    meta: JSON
  }

  input MaterialInput {
    type: String!
    key: String!
    size: Int
    meta: JSON
  }

  extend type Query {
    getMaterialById(id: Int!): Material
  }

  extend type Mutation {
    createMaterial(material: MaterialInput!): Material
  }

`
